  import request from '@/utils/request'

  //用户优惠券列表查看
  export function couponUserSelect(data) {
    return request({
      url: '/coupon/couponHistoryVo/couponUserSelect',
      method: 'post',
      data: data
    })
  }

  //用户已使用优惠券查看
  export function couponUserSelectExpired(data) {
    return request({
      url: '/coupon/couponHistoryVo/couponUserSelectExpired',
      method: 'post',
      data: data
    })
  }

  //用户已过期优惠券查看
  export function couponUserSelectUse(data) {
    return request({
      url: '/coupon/couponHistoryVo/couponUserSelectUse',
      method: 'post',
      data: data
    })
  }


  //用户优惠券删除
  export function couponUserDelete(memberId) {
    return request({
      url: '/coupon/couponHistoryVo/couponUserDelete?memberId='+memberId,
      method: 'get'
    })
  }
